package com.example.demotest.pojo.dto;

import com.example.demotest.pojo.ProductSoldStatus;
import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

import java.util.List;


public class ProductEditDto
{

    private String productName;


    private String description;


    @DecimalMin(value = "0.01", message = "价格必须大于0")
    private Double price;


    private Integer categoryId;

    private List<String> images;

    private String statusSold ="ON_SALE";

    // Getters
    public String getProductName() {
        return productName;
    }

    @Override
    public String toString() {
        return "ProductRequestDto{" +
                "productName='" + productName + '\'' +
                ", description='" + description + '\'' +
                ", price=" + price +
                ", categoryId=" + categoryId +
                ", images=" + images +
                '}';
    }

    public String getDescription() {
        return description;
    }

    public Double getPrice() {
        return price;
    }

    public Integer getClassificationId() {
        return categoryId;
    }

    public List<String> getImages() {
        return images;
    }

    public String getStatusSold() {return statusSold;}

    // Setters
    public void setProductName(String productName) {
        this.productName = productName;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public void setClassificationId(Integer classification) {
        this.categoryId = classification;
    }

    public void setImages(List<String> images) {
        this.images = images;
    }

    public void setStatusSold(String statusSold) {this.statusSold = statusSold;}
}
